#pragma once

#ifndef GAME_H
#define GAME_H


#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include <conio.h>
#include "defined-system-function.h"



#define SPACE 32
#define LEFT 75
#define RIGHT 77
#define DOWN 80
#define ESC 27
#define Wall 2
#define Box 1
#define Kong 0
#define FACE_X 20
#define FACE_Y 29


void inter_face();
void init_dia();
void draw_dia(int base, int space_c, int x, int y);
void draw_kong(int base, int space_c, int x, int y);
int pd(int n, int space_c, int x, int y);
void new_startGame();
int xc();
void endGame(int grade);
void prinfGrade();
void StartScreen();
void startGame();






struct Face
{
	int data[FACE_Y][FACE_X + 10];
	int color[FACE_Y - 1][FACE_X - 2];
};


typedef struct
{
	int space[4][4];
} Dia;



extern struct Face face;
extern int main(void);
extern int grade;
extern int nn;
extern Dia dia[7][4];


extern const char* title[];
extern int length;

#endif //GAME_H